package com.laob.laob_special.service;

import com.alibaba.fastjson.JSONObject;

import java.util.List;

/**
 * @author zhangh     
 * @version V1.0.0
 * @projectName laob_special
 * @title     HttpService   
 * @package    com.laob.laob_special.service  
 * @date   2019/9/9 13:45  
 * @explain
 */
public interface HttpService {
    /**
     * 测试请求端口号是否可用
     * @return
     */
    List<Integer> testPort(String ipAddress, String type, Integer minPort, Integer maxPort, String method);

    /**
     * 测试某一端口的连通性
     * @param url
     * @param type
     * @return
     */
    JSONObject sendMsg(String url, String type, String params);

    /**
     * 停止端口扫描
     */
    void stopScan();

    /**
     * 发送自定义请求头的get请求
     * @param reqHeaderStr 路径
     * @return
     */
    JSONObject httpGetByCustomerHeader(String type,String ip,String reqHeaderStr)  throws Exception;
}
